<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/common/meta.jsp"%>
<title>个人资料设置</title>
<link href="${ctx }/skins/index.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/skins/profile.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var type = "${param.type}";
$(function(){
	$("#main_nav li").each(function(){
		if($(this).hasClass('activetab')){
			$(this).removeClass('activetab');
		}
	});
	$("#main_nav li").each(function(){
		var attrId = $(this).attr("id");
		if(attrId==type){$(this).addClass("activetab");}
	});
});
</script>
</head>
<body id="page-home">
	<%@ include file="/common/header.jsp"%>
	<div class='page-content'>
		<!-- 做边框个人信息 -->
		<div id='column-left'><%@ include file="/common/left.jsp"%></div>
		<!-- 中间部分：发表博文、博文浏览 -->
		<div id="column-main" style="width: 690px;padding: 10px 24px;">
		<c:if test="${not empty succ}">
			<p class="flash_notice">${succ}</p>
		</c:if>
		<c:if test="${not empty err}">
			<p class="flash_notice"><font color="red">${err}</font></p>
		</c:if>
			<div class="blog_main_title">
				<span>我的设置</span>
			</div>
			<div>
				<ul id="main_nav">
					<li id="profile"><a href="${ctx }/profile/profile_view.jsp?type=profile">个人资料</a>
					</li>
					<li id="password"><a href="${ctx }/profile/profile_view.jsp?type=password">修改密码</a>
					</li>
					<li id="email"><a href="${ctx }/profile/profile_view.jsp?type=email">注册邮箱</a>
					</li>
				</ul>
			</div>
			<c:if test="${param.type=='profile'||type=='profile'}">
			<%@ include file="/profile/profile.jsp" %>
			</c:if>
			<c:if test="${param.type=='password'||type=='password'}">
			<%@ include file="/profile/password.jsp" %>
			</c:if>
			<c:if test="${param.type=='email'||type=='email'}">
			<%@ include file="/profile/email.jsp" %>
			</c:if>
		</div>
	</div>
</body>
</html>